package xyz.yzy.coc.wxtest.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import xyz.yzy.coc.wxtest.service.WxdianyingService;

@RequestMapping(value= "wx")
@Controller
public class WxController {
	@Autowired
	private WxdianyingService service;
	
	 
	@RequestMapping(value = "/tofindByid",method=RequestMethod.GET)
	@ResponseBody
	private Object tofindByid(Integer id) throws InterruptedException {
		Thread.sleep(2000);
		return service.findById(id);
	}
}
